include(GoogleTest)

add_executable(fwk_test src/service_fwk_test.cpp src/service_se_card_channel_test.cpp)

target_include_directories(fwk_test PRIVATE inc)
target_include_directories(fwk_test PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_compile_options(fwk_test PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})

target_link_libraries(fwk_test PRIVATE dyn_services_main_obj)
target_link_libraries(fwk_test PRIVATE se_apdu_core_obj)
target_link_libraries(fwk_test PRIVATE logger_obj)
target_link_libraries(fwk_test PRIVATE securec)
target_link_libraries(fwk_test PRIVATE se_base_test_mocks_obj)
target_link_libraries(fwk_test PRIVATE tee_dyn_test_mocks)
target_link_libraries(fwk_test PRIVATE se_base_services_defines)
target_link_libraries(fwk_test PRIVATE test_helpers_obj)
target_link_libraries(fwk_test PRIVATE se_base_services_fwk_obj)
target_link_libraries(fwk_test PRIVATE GTest::gmock_main)

gtest_discover_tests(fwk_test)
